package com.syn.michat.im.model;

import com.alibaba.fastjson.annotation.JSONField;

public class Package {

    public static final String PACKAGE_TYPE_AUTH = "auth";
    public static final String PACKAGE_TYPE_ACK = "ack";
    public static final String PACKAGE_TYPE_MESSAGE = "message";

    // 加密算法，暂时不用
    private int alg = 0;
    // 消息包类型
    private String type;
    // 加密数据
    private String data;
    // token
    @JSONField(serialize = false)
    private String token;

    public int getAlg() {
        return alg;
    }

    public void setAlg(int alg) {
        this.alg = alg;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
